All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.std.anim.Sprite

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.std.anim.Sprite

public final class Sprite
extends QTObject
implements QuickTimeLib, PrimitivesLib
The Sprite class implements the corresponding data structure of the Movie Toolbox.


Constructor Index

 o Sprite(SpriteWorld, ImageDescription, EncodedImage, Matrix, boolean, int)
This constructor creates a new Sprite object for a specified sprite world.

Method Index

 o getGraphicsMode()
This method gets the graphics mode property of this sprite.
 o getImageData()
This method gets the image data property of this sprite.
 o getImageDataSize()
This method gets the size of the image data that a sprite is currently displaying.
 o getImageDescription()
This method gets the image description property of this sprite.
 o getInitialSize()
This method returns the original width and height of the image currently being presented by the sprite.
 o getLayer()
This method gets the layer property of this sprite.
 o getMatrix()
This method gets the matrix property of this sprite.
 o getSpriteWorld()
Return the sprite world that this sprite belongs too
 o getVisible()
This method gets the visibility property of this sprite.
 o hitTest(int, QDPoint)
This method tests if a point is inside a sprite.
 o invalidate()
This method invalidates the portion of the sprite's sprite world which is occupied by the sprite.
 o remove()
This will remove the sprite from the SpriteWorld it is contained in and destroy its internal structures.
 o setGraphicsMode(GraphicsMode)
This method sets the graphics mode property of this sprite.
 o setImageData(EncodedImage)
This method sets the image data property of this sprite.
 o setImageDataIfDifferent(EncodedImage)
This method sets the image data property of this sprite.
 o setImageDataSize(int)
This method sets the size of the image data that the sprite is currently displaying.
 o setImageDescription(ImageDescription)
This method sets the image description property of this sprite.
 o setLayer(int)
This method sets the layer property of this sprite.
 o setMatrix(Matrix)
This method sets the matrix property of this sprite.
 o setVisible(boolean)
This method sets the visibility property of this sprite.

Constructors

 o Sprite
 public Sprite(SpriteWorld itsSpriteWorld,
               ImageDescription idh,
               EncodedImage imageData,
               Matrix matrix,
               boolean visible,
               int layer) throws QTException
This constructor creates a new Sprite object for a specified sprite world.

QuickTime::NewSprite()

Parameters:
itsSpriteWorld - Specifies the sprite world.
idh - an ImageDescription object that describes the image.
imageData - Contains the sprite's image data.
matrix - A Matrix object describing the sprite's matrix.
visible - True if the sprite is visible.
layer - The sprite's layer.

Methods

 o getSpriteWorld
 public SpriteWorld getSpriteWorld()
Return the sprite world that this sprite belongs too

 o invalidate
 public void invalidate()
This method invalidates the portion of the sprite's sprite world which is occupied by the sprite.

QuickTime::InvalidateSprite ()

 o hitTest
 public boolean hitTest(int flags,
                        QDPoint loc) throws StdQTException
This method tests if a point is inside a sprite.

QuickTime::SpriteHitTest ()

Parameters:
flags - Specifies the control flags.
loc - Specifies the test point.
Returns:
true if the point is inside the sprite, false if not.
 o getMatrix
 public Matrix getMatrix() throws StdQTException
This method gets the matrix property of this sprite.

QuickTime::GetSpriteProperty ()

Returns:
the matrix.
 o setMatrix
 public void setMatrix(Matrix matrix) throws StdQTException
This method sets the matrix property of this sprite.

QuickTime::SetSpriteProperty ()

Parameters:
matrix - Specifies the matrix.
 o getImageDescription
 public ImageDescription getImageDescription() throws StdQTException
This method gets the image description property of this sprite.

QuickTime::GetSpriteProperty ()

Returns:
the image description.
 o getInitialSize
 public Dimension getInitialSize() throws StdQTException
This method returns the original width and height of the image currently being presented by the sprite.

QuickTime::GetSpriteProperty ()

Returns:
a Dimension
 o setImageDescription
 public void setImageDescription(ImageDescription idh) throws StdQTException
This method sets the image description property of this sprite.

QuickTime::SetSpriteProperty ()

Parameters:
idh - Specifies the image description.
 o getImageData
 public RawEncodedImage getImageData() throws StdQTException
This method gets the image data property of this sprite.

QuickTime::GetSpriteProperty ()

Returns:
the image data.
 o setImageData
 public void setImageData(EncodedImage data) throws StdQTException
This method sets the image data property of this sprite. It will also set the size of the image data to the size of the pointer. If the actual size of the image data is smaller than the handle you should set the imageDataSize after this call to the desired size.

QuickTime::SetSpriteProperty ()

Parameters:
data - Specifies the image data.
 o setImageDataIfDifferent
 public boolean setImageDataIfDifferent(EncodedImage data) throws StdQTException
This method sets the image data property of this sprite. It will also set the size of the image data to the size of the pointer. If the actual size of the image data is smaller than the handle you should set the imageDataSize after this call to the desired size.

This method can be useful to use if the SpriteWorld the Sprite is a member of should be redrawn after changing the image data of a Sprite.

QuickTime::SetSpriteProperty ()

Parameters:
data - Specifies the image data.
Returns:
a boolean which indicates if the incoming image data is different (true) than the previous data the sprite was presented.
 o getVisible
 public boolean getVisible() throws StdQTException
This method gets the visibility property of this sprite.

QuickTime::GetSpriteProperty ()

Returns:
the visibility.
 o setVisible
 public void setVisible(boolean visible) throws StdQTException
This method sets the visibility property of this sprite.

QuickTime::SetSpriteProperty ()

Parameters:
visible - Specifies the visibility.
 o getLayer
 public int getLayer() throws StdQTException
This method gets the layer property of this sprite.

QuickTime::GetSpriteProperty ()

Returns:
the layer.
 o setLayer
 public void setLayer(int layer) throws StdQTException
This method sets the layer property of this sprite.

QuickTime::SetSpriteProperty ()

Parameters:
layer - Specifies the layer.
 o getGraphicsMode
 public GraphicsMode getGraphicsMode() throws StdQTException
This method gets the graphics mode property of this sprite.

QuickTime::GetSpriteProperty ()

Returns:
the graphics mode.
 o setGraphicsMode
 public void setGraphicsMode(GraphicsMode gMode) throws StdQTException
This method sets the graphics mode property of this sprite.

QuickTime::SetSpriteProperty ()

Parameters:
gMode - Specifies the graphics mode.
 o getImageDataSize
 public int getImageDataSize() throws StdQTException
This method gets the size of the image data that a sprite is currently displaying.

QuickTime::GetSpriteProperty ()

Returns:
the size of the image data
 o setImageDataSize
 public void setImageDataSize(int size) throws StdQTException
This method sets the size of the image data that the sprite is currently displaying. If you know the size of the image data it is recommended that you set this.

QuickTime::SetSpriteProperty ()

Parameters:
size - the size of the image data
 o remove
 public void remove()
This will remove the sprite from the SpriteWorld it is contained in and destroy its internal structures. The Sprite is not usuable after this call. If you have any other java objects that refer to this sprite, they will also be unusable - so use this call with care.

QuickTime::DisposeSprite ()


All Packages  Class Hierarchy  This Package  Previous  Next  Index